Skip to content

feat(ts): scaffold ember-ts client with proto codegen - #308

Merged
kacy merged 1 commit into
mainfrom
feat/ts-proto-gen
Feb 25, 2026
Merged

feat(ts): scaffold ember-ts client with proto codegen#308
kacy merged 1 commit into
mainfrom
feat/ts-proto-gen

Conversation

@kacy

@kacy kacy commented Feb 25, 2026

Copy link
Copy Markdown
Owner

summary

adds clients/ember-ts/ and wires make proto-ts to actually run codegen, matching the pattern already established by proto-go and proto-py.

  • clients/ember-ts/Makefileproto-gen target using npx @grpc/proto-loader proto-loader-gen-types
  • clients/ember-ts/package.json — declares @grpc/grpc-js and @grpc/proto-loader dependencies, mirrors pyproject.toml's minimal style
  • clients/ember-ts/tsconfig.json — standard strict config targeting ES2020/commonjs
  • Makefileproto-ts now delegates to clients/ember-ts && make proto-gen instead of printing instructions

codegen uses npx --yes --package=@grpc/proto-loader proto-loader-gen-types so no global install is required — same zero-install philosophy as python's python3 -m grpc_tools.protoc.

what was tested

  • make proto-ts runs end-to-end and generates 160 TypeScript type files under clients/ember-ts/src/generated/ember/v1/
  • verified the root target delegates correctly (cd clients/ember-ts && make proto-gen)
  • confirmed generated EmberCache.ts contains the full service client interface

design notes

the generated files are committed (matching the Go and Python clients). src/generated/ can be excluded later if the team prefers codegen-on-install, but keeping parity with the other clients for now.

adds clients/ember-ts/ with Makefile, package.json, and tsconfig.json.
wires the root Makefile proto-ts target to delegate to the new client
Makefile, matching the proto-go and proto-py pattern.

generates 160 TypeScript type definitions from ember.proto via
@grpc/proto-loader's proto-loader-gen-types.
@kacy
kacy merged commit 0c7d9f8 into main Feb 25, 2026
@kacy
kacy deleted the feat/ts-proto-gen branch February 25, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant